﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XSTDZ.ERP.Core.Generator;
using XSTDZ.ERP.Core.Extentions;


namespace XSTDZ.ERP.Domain.Models
{
    /// <summary>
    /// 收付款账单
    /// </summary>
    public partial class ReceivablePayableBill
    {
        public ReceivablePayableBill()
        {
            this.ReceivablePayableRecords = new HashSet<ReceivablePayableRecord>();
        }

        public ReceivablePayableBill Init()
        {
            if (this.Id == null || this.Id.Equals(Guid.Empty))
            {
                this.Id = (Guid)new SequentialIdentityGenerator().Next;
            }
            this.CreateTime = DateTime.Now;
            this.Deleted = 0;
           
            return this;
        }
      
    }
}
